package com.syh.jn.scm.service.impl.supplier.statistics;

import com.alibaba.dubbo.config.annotation.Service;
import com.syh.jn.scm.dto.supplier.statistics.salesTeam.SalesTeamReportVo;
import com.syh.jn.scm.infrastructure.repository.utils.MybatisTemplate;
import com.syh.jn.scm.service.api.supplier.statistics.SalesTeamReportService;

import java.util.List;
import java.util.Map;

/**
 * 销售团队报表相关
 */
@Service
public class SalesTeamReportServiceImpl implements SalesTeamReportService {
  /**
   * 销售团队统计
   *
   * @param params
   * @return
   */
  @Override
  public List<SalesTeamReportVo> salesTeamReport(Map<String, Object> params) {
    return MybatisTemplate.selectList("salesTeamReportQRepository.salesTeamReport",params);
  }

  /**
   * 销售团队统计总条数
   *
   * @param params
   * @return
   */
  @Override
  public Integer salesTeamReportCount(Map<String, Object> params) {
    return MybatisTemplate.selectOne("salesTeamReportQRepository.salesTeamReportCount",params);
  }
}
